package singleton.beans;

/**
 * @className：Cat
 * @description:
 * @author: xiaohuihui
 * @createDate: 2021/9/4
 * @version: 1.0
 */
public class Cat {
    private static Cat catInstance;

    private Cat(){};


    public static synchronized Cat getCatInstance(){
        if (catInstance == null){
            catInstance = new Cat();
        }

        return catInstance;
    }
}
